home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8054 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: lade.news.pipex.net!pipex!bt!usenet
  2. From: Greg Thomas <thomasgd@btla1.te.bt.co.uk>
  3. Newsgroups: vmsnet.misc,comp.lang.c
  4. Subject: Re: How to run a C program taking command line arguments on VMS
  5. Date: Fri, 01 Mar 1996 09:54:10 +0000
  6. Organization: BT
  7. Message-ID: <3136C942.1198@btla1.te.bt.co.uk>
  8. References: <4h1u5d$s5c@news.fsu.edu>
  9. NNTP-Posting-Host: pc3716.svh.bt.co.uk
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14.  
  15. Lynn Mei wrote:
  16. > Could someone tell me how to run a C program which takes command line
  17. > arguments on VAX/VMS? I have checked the FAQ about openVMS and tried the
  18. > instructions. But I couldn't get it work. I don't have an openVMS mannual.
  19. > Please help me!
  20. > My program is like:...
  21. > If run on Unix or DOS, I could type something like
  22. >   myprog -lu abcd
  23. > How to run it on VMS?
  24.  
  25. Because the VMS 'RUN' command takes VMS based argments, you need to 
  26. set up a foreign symbol:
  27.   $ myprog == "$DISK:[DIRECTORY]MY_PROG.EXE"
  28. then just use 
  29.   $ myprog -lu abcd
  30. as you do on DOS/UNIX. This is detailed fairly clearly in the FAQ.
  31.  
  32. -- 
  33. Greg Thomas
  34. ---
  35. Tel (01473) 224832
  36. Fax (01473) 233319
  37. ---
  38. Any opinions expressed are mine, not necessarily those of the company 
  39. I work for.
  40.